Added replace_file def & updates jini /etc/hosts