flattens directory, updates all filenames, adjust test module install macros accordingly