Replace function is Bashism.

The script is POSIX shell, os bashism don't work.
Merge branch 'release/2.1.1'
Merge tag '2.1.1' into develop

Release: 2.1.1