fix install script. closes gh-597.