prepareCompiledDir in constructor