wrap keychain in 'if which'
Set location to grep before wiping PATH