Flatten files when building