Fix handling of parens in manifest parser