Make some sed more portable: Use \{0,1\} instead of \?