Fix sed command to inplace edit (-i)