Simplified \ optimized the git-isahead
Simplified \ optimized (I think) git-isdirty