Script 'schedule': fix the use of sed on OSX.