Corrects environment variable before_install hook