Fix problems with regex in set_deploy_ip