FIX #72: output_dir kwarg in Memory.cache

The fix for #72 is simple (as described in the comments of the issue). I will merge the PR if the travis tests are green.