Fix broken installation when there is no support for set_env_var()