remove pathquery's OS dependency