Write nrepl port to ".nrepl-port", use doto.