Added a check for the env.sh file

so that the modification skips any hosts that don't have it (such as the edge nodes)