Replace getrev.sh with a one-liner (thanks @bellthoven)