The redirection of stderr towards stdout means calls to "which program" always return something even when "program" is not installed. This patch checks for the return value instead before returning the value. See #814.
The redirection of stderr towards stdout means calls to "which program" always return something even when "program" is not installed. This patch checks for the return value instead before returning the value. See #814.