Fix mem-cache to work with atom-shell.