Fixing sed for mac and ubuntu