Make file operations mockable for testing of file locators.

** Replace if we get better mock testing ability **