Added better function for checking git "dirty" branch.