Add support for autojump installed with MacPorts

* Use hash command to suppress an error message when Homebrew is not installed
* Newly added part comes from https://trac.macports.org/browser/trunk/dports/sysutils/autojump/Portfile