Simplify parsePaths function; don't break existing behaviour