changed checkProgramIsInEnvironment to output to &> /dev/null