ddl: add support for '%'s in names of directories and files