Fix sed syntax to be compatible with OS X