Only update BUILD_VERSION when revision changes.

This was broken in 2b5040c because the BUILD_VERSION included a quoted version of the string and we compared that to an unquoted version in `updateBuildVersion`. This caused version.cpp to rebuild all the time, which is less than ideal.

This fixes #125.