Made utilities/tests/diagnose_imports no do anything unless as main program.

Prevents it from accidentally geting pulled in as module import and its
main program run as module initialization code.