build: Fix the install script.

It's a little hacked together but
at least it works now.