a couple of minor repairs, but the install script actually seems to work!