Fix external commands which take no arguments.

Fixes #5998