fix 'which' when global shim dir doesn't exist