Merge "Fixed and improve RunCommand() when running as root."