Treat files as external dependencies.

Fixes #1002344