Fix problems with uClibc builds.
Store short GIT revisions by default, store full revisions in separate file.