Refactor Compiler's class. It compiles each file in a different tmp folder. This folder is used by the runnable objects so that they can be moved or copied easier.
Add tmp folder where the files are going to be compiled.