Modified main() handling of argv based on experience with hg_cpserver_sync.py.