Update cli.py

fix rebuild without the package md bugs