Fixed the installer script for system installs

Plus added a safeguard against ppl running it as root.
Merge pull request #1237 from OCamlPro/fix-installer-script-root

Fixed the installer script for system installs