Preprocess files with directives