Strip paths that might be reported by some systems