run-tests: move bits of main program so it's all at the bottom.
*** failed to import extension badext from .../badext.py: bit bucket overflow*** failed to import extension badext2: No module named badext2hg help [TOPIC]show help for a given topic or a help overview