Fixed install script to support newer distributions