Implement bash version of host_add script workaround python 2.7 limit