Add check for if the current dir is a git dir or not