Fix install script for bash compatibility and check for ruby before installing git repos with hub