sed: fix 'q', and { }, and } after s/// with no semicolon.