Set cache path from require.mainModule instead of using app.get/set('filepath')

and also create cache directory if it doesn't exist
Bump version