erlang node discovery - originally from https://code.google.com/p/nodefinder/