Fix error if the files are in subdirs.