Is there a way to specify the location of the hass.io installation directory on Ubuntu?

The default install, along with all the yaml files goes to /usr/share/hassio. Is there a way to change this to go in my home directory?

Sure!

Download the script and edit it to the location you want.

Honestly, if you are going to randomly run scripts off the internet, you should have an idea of what it’s doing first.