Fixed /etc/hosts check

1. It was accessing node info in a way that would crash for me
2. It was finding the wrong instance when on a solo cluster