Convert install script to ruby