Fix generation of revision number.