Version: fix revision calculation