Use ``type`` instead of ``command``

(``type -P`` ignores aliases and the like)
Check if programs exist before aliasing them
Add ``git diff`` and ``git difftool``