fixed writing the revision.txt generator