Support sed call on non-Darwin environments.