It's probably not best to set $0 here. It should be done inside cli.rb instead, since Server can be embedded in another program and we shouldn't mess with their $0.