beginning refactoring for global installs
fix hash
fix shims for global install
change position of  param to env func so that it actually works
scoop install -global sorta works