making the get_version code use values from env, if found