fixes #5441; fix external commands