[Bug 399132] check parent dir of session store against file to be removed