The first time it installs the hotfix, the second time it will uninstall it.
HF240 appears to be IF3 (I assume you're running Linux)?
I don't find FP7HF370 listed here...
For that very reason, whenever I update a server, I keep a copy of the current install files on the server - so that I can remove the current FP or HF when installing new.
The only other way I know of would be to remove Domino, then reinstall 9.0.1, then the current FP and HF.
Oh, you could open a PMR to get the code if you can't find it anywhere!