[preprocessor] adapted handling of invalid filename