refactored the running as root check
refactored the running as root check

 - made it into a stand-alone function
 - added check_if_running_as_root function

spikegrobstein/mcwrapper,spikegrobstein/mcwrapper