Veteran Scotland goalkeeper Craig Gordon said qualifying for his first World Cup at the age of 42 was worth all the turmoil he has endured in his career.