Fix bottle revision number calculation