Allow installdir to be overriden. Handle params a little better