[macros] add function to read files, stripping comments
and use this for subdirs