Fix the test to make sure the dir exists.
Merge pull request #439 from howbazaar/backport-mongo-fix

Fix the test to make sure the dir exists.

The mock was masking a real issue.