fix search_for_environment.sh