pub fn memory_path(workspace: &Path) -> PathBuf
Determine the memory file path based on workspace and env var.