Creating an “unzip” custom module
Keep in mind Drupal 7 has a built in library for working with archive files.

Archiver Zip

See also system.archiver.inc

Perhaps you'll have more success using that.

Lastly, make sure the path to the uploaded file is correct for extraction.