xinit does it in a slightly different way, if first tries to `exec` the script without an interpreter, and if it fails, adds `sh` in front and tries again. We could also run exec in a subshell, but the first `exec` would display an error that we do not want to "pipe out" with `2>/dev/null`...