Fixes #806: Set Commit ID for build scripts.
Added a test to check for commit id in post deployment environment.