It was erroring out due to a 'sed -u' the -u not being an option supported by the version of sed that is on the N900.