Fix sed commands (#349)