Fix sys.argv usage in cli.main
Remove templates