fix: hash path-like session index segments and ignore EPERM scans (#1211)