fixed issue #600: Wrong version string when building outside a git repository.