Improved scripts to use root user when needed.