changed hard-coded version by variable

(cherry picked from commit de14ec38645085ed432abba6cb61b28bb92f9e6a)