Remove dead code
Fix warning in test

@myronmarston pray tell what module do I need to include here to have access to
the `receive` method as in `expect(File).to receive(:file?)`
Refactor - no need to work out location again