Some versions of 'which' return stderr. Added code to hide it