Fix MRELEASE-812: "prepare" does not commit before tagging and therefore deploys snapshot instead of release