Moved fetching of git revision to module-level.