Replace `whence -p` with `command` builtin
Tidy up cap override function

* Doesn't do a git push first anymore
* Uses `command` builtin rather than `whence -p` to run binary
* rcap no longer exists - use `command cap` instead