touchdirs: support files as top-level directories