Exclude dirs from git_is_repo check

Adds a utilities file for some useful functions

Command syntax was inspired by / copied from:
    https://github.com/slashbeast/things/blob/master/configs/DOTzshrc