Fixed a bug that allowed files to be nested within eachother