Fix stack traces for modules loaded from the classpath.