Fix passing executable in non-shell mode

Ensure args[0] points to the executable in such cases.