create pathSepRegExp once to use in multiple places; use pathSep when display errors and paths in comments