added critical missing "d" from sed command. doh!