fix some parts to avoid errors

add extra error check in 'nrepl-current-host' function.
modify 'cider' function to avoid deprecated arguments.