Rearranges install.sh procedures