fix install script

fixes #1347 feel free to reject