Made install.sh check for permissions before anything else.