[server] check number of cmd args even when execvpe() is not available