Correctly export short revision from git

Signed-off-by: Michal Čihař <michal@cihar.com>