Fix a bug where specified repl host was ignored.
Remove usage of soon-to-be legacy API in nrepl.