Fixed issues loading resources multiple dirs

Also added error output when building multiple modules.