sed on mac complains RE in form of {,n}: "RE error: invalid repetition count(s)"