Be more defensive before shlex