Fix git revision extraction for non-git and submodule builds (closes #41)