Fix get_git_rev fail to return None issue
Fix a typo