mac: fix for the sed issue, refs #355