Close GH-125: Fix invalid regular expressions in removePaths function..