[Compiler] Create target directory if needed