Adjust `sed` command for BSD version, which does not support '/x/y/2g' Signed-off-by: ichekrygin <illya.chekrygin@gmail.com>