Trying to fix sed statements