The system tests have a number of minor formatting and structural issues that would be better to clean up sooner rather than later. This PR addresses nearly all of them.
(fixes#592)
Under certain circumstances, __main__ is a "builtin" module. Such modules do not have a __file__ attribute. Consequently, this caused the pydevd injection code to fail. This PR fixes that.