Fixing macosx sed command