FIX: wrong subpaths are generated when drilling deep in the file hierarchy