'sudoifnotroot' method added which re-executes the current script using sudo (if the user isn't root)