Issue #36: Verify that the output path for the compilation exists and try to create it if it doesn't. This seems only to be necessary when using the external compiler, but won't hurt when using the internal compiler.
Issue #40: Changed element resolution in order to put messages in the same file in the search scope.