fixed directory traversal check with trip equal op