split command in lib.misc.chroot_exec() only if it is string (str)