some mods to get install.sh do dotbash ok on osx
a bugfix