Fixes #5187: use commands with their full paths in sudo parameters