Cleaned up packaging binaries after version removal.
Fixed accessing git if not a git repository.