Update git dirty method to work with newer version of git