DAWNSCI-813: check paths for equality in case they are not regexp