use cut instead of sed to eliminate the dependency: cut is in coreutils
changed parse_git_dirty to use more performant plumbing command rather than 'status --porcelain'