fixed sed command for darwin