Refactoring, minor
Fixed the unpushed commit script to look for exit status rather than the incorrect string comparison with .git