Fixed the installer script for system installs

Plus added a safeguard against ppl running it as root.