Fix file dependency

My previous file/json pull request was merged incomplete/modified, and so loops forever when using the file dependency. This fixes that.