Changed it so that non-Linux platforms don't bother with 'which' call.