Fix reinstall flag in cli

- Change to check `$config['reinstall']` as `$reinstall` is never set
Merge pull request #1551 from mkly/fix_reinstall_cli

Fix reinstall flag in cli