Changed the path check to recursively make the files.