Fix segfault for OS with gigantic max arg length

Thanks to Jiri Wiesner.
Merge branch 'fix-segfault-because-on-shellout'

Fix segmentation fault for operating systems that have gigantic maximum
length of argument list.

Thanks to Jiri Wiesner.