parser: better compatibility with 'sed' script