fix grep in search_for_environment.sh