improve checking for epmd