Bugfix basePath resolution

Since the preprocessor gets called with every file it has to process, the basePath resolution went corrupt if two or more less files had to be processed. Now it uses a second array to store the resolved paths.
Sorry for this bug in my last request.