Added isSudo to check the user preference for sudo.
Added isSudo to check the user preference for sudo.

Durgesh1988/core,RLOpenCatalyst/core,RLOpenCatalyst/core,Durgesh1988/core,Durgesh1988/core,RLOpenCatalyst/core