Remove space in `sed -i bak`

Ref: #8494