added detection of being ahead
fixed parse_git_ahead so it actually works