changed install script to fit different platforms