Moved the path creation to CheckFilepath.
Moved AddFile before CheckFilepath. For textures first add their
filename to the list then check if they need to be copied.