check if root is running the install script

Check if the user running the script is root so he can write into "/usr/lib/" instead of having errors while running the whole script.