Updated checkenv.sh script.