Added support for COMMIT file in SDF submodule.

When the source is distributed as a tarball, the build system can
no longer query git for version information. In such a case, the
build system now attempts to get the version information from the
"src/COMMIT" file.
Fixes for the traditional Makefile setup.