Add current revision back to build output.

Closes #1715.