check4progs: Change testing from ‘which’ to iterating over $PATH [Closes: issue1284]