Add dynamic version to CLI intro header
Clean up the code in cli.py