memory.c: Replace backslashes in paths with slashes.