[fix] removed some error catches to fix mac port
Known issues `sed` command don't to what expected on mac
[fix] domain replacement