Avoiding usage of GNU extensions in sed invocation

Tried it with "--posix" option that should disable all GNU extensions
and it worked.