Fixed save_environment to not eat spaces in ENV variables