fix dest variable determine in search_for_environment.sh