Try to be marginally smarter about getting the epmd port, it is set as an init argument from the environment variable.