Fix global replace in TSDoc.processPath