Added fixPath utility function
Moved runInternal to Base
Implemented dumping errors to index file
Added FileUtils class
Removed dead code
Added buildFolder
Fixed copying core files