Correctly detect the new version of gppkg and clean it up

Also in teardown part, correctly remove gppkg