nix-prefetch-*: print fetched revision

nix-prefetch-git already did (though I had to fix a bug to make it work with explicit specified refs) this,
and I think it's useful if you leave out the REV and want to know what HEAD currenlty is. This PR implements the
feature for the rest of the prefetch scripts (bzr, hg, svn).