Catching shlex splitting error in fact gathering get_cmdline call

Fixes #8352