I have added some code to check whether the keytool application is available.
This seems to work, but I have not tested it thoroughly. It may need some tweaking, and the error message could probably be improved. I won't have much time to do more on this until next weekend at the earliest, so if anyone else can try and break it that would be good.
