fix up simple upgrader code
- tested on linux (ubuntu, centos, debian)
- added unique working directories per-run