cli.py: fixed regexp EOL bug