Ensure the SHA is included in the VERSION.

Closes #1736.