### Main program.
## If this is a Git checkout then Git should be able to identify the version.
-if [ -d .git ] && version=$(git describe --abbrev=4 2>/dev/null); then
+if [ -e .git ] && version=$(git describe --abbrev=4 2>/dev/null); then
## If the working tree is dirty, indicate with a `+'.
case "$(git diff-index --name-only HEAD)" in