Fix reinstall flag in cli

- Change to check `$config['reinstall']` as `$reinstall` is never set