Try out
Alien::gzip before you do this manually. Not sure how this would fly on SP, but the main idea is the strategy it suggests - look for gzip, and if it's not there install it (can't suggest one personally). Another strategy is to use a module that implements gzip (or zip) in a portable way. Depending on your needs, of course.