Added a command line flag, -d, for specifying the location of the git directory. Defaults to os.getcwd() if none is provided