The source project of this merge request has been removed.
Replace 'which' with 'command -v'
The 'which' command was deprecated with debianutils 5.0-1 as it is not POSIX compliant and it's behavior is therefor not consistent, so replace it with 'command -v' which is POSIX compliant.