Fix a bug with non-xml files

If your files are in a SVN repository, SVN will probably create some .svn folders and screw the loading of everything.
The same applies if you have custom folders and files.