Provide stacktrace information when building tests

When an ImportError (or ImproperlyConfigured) is raised as part of a package's dependencies, print the traceback that generated it to stdout, so that the error location is discoverable.