Revert "Re #6168. Exit with a code that's the Mantid revision number."

Seems like that's not going to work because Jenkins will see it as
a failure even if I capture the return code in a variable.
Guess I'll just have to do it via a file.

This reverts commit fad6f843175e3a765bb239e7cbd9a98b735e0951.