changed: Check for the output of which instead of its return code to determine whether a binary exists. Apparently using the return code is not reliable on ALL platforms