parser: fixed a bug with #include and subdirs