util: refactoring around calling shlex.split()