fix revision.txt creation in build script