more optimizations, +10% speed

- don't use git-rev-list & sed, use git-log instead
- don't use git-log for final print
mac compatibility