Fix installation path bugs; move wrapper script

There was a bug in the way that the Build scripts chose the destination
of the custom install elements. Now Builder.pm leverages the internal
logic for deciding the installation prefix. The shell wrapper script was
also moved to make deciding where to install things easier.