Make directories before writing class files.