Adapt for sed on local and CI build machine
Merge pull request #308 from rjc123/local_munge

Adapt for sed on local and CI build machine