Make install script work on CentOS

I swear it worked on OS X when I last tested it, but perhaps it did not.

Anyway, this version should in theory work in most *nixy environments.