correctly deal with servers that don't have magic quotes disabled
add hashed_directory_level for simple cache if file fallback is used