Added check if node is private or not
Script now also tests if the hostname has been changed