passing root dir into update-package to make it more testable
adding update-package tests
updating tests to selectively run in given environment