Fix #164 - use None if failing to get SHA from git