Fix gzipped package file and improved dependency resolution