Changed globally mocked fs module to locally mocked one

Enables running tests in WebStorm, too.
Use Express's app.path() function, and not my proprietary hack