fix for global install on linux
minor changes, mostly fighting with travis build