Update install.sh

Enabled everything to work well on both Mac and Ubuntu, other linux distros are unknown at the moment. They should work though.