don't add external files to files array

External files should not be added to self.files array to avoid being
loaded.
2.2.5