fix BSD sed weirdness