Use Rex::Zip to crete zip

Hi @Ruslaideemin,

This pull request references https://github.com/rapid7/metasploit-framework/pull/2227, and tries to create the zip file with Rex::Zip as proposed by @jlee-r7, hope it has sense for you and you can help us to test it, since I've not access to a vulnerable MacOSX/Safari. 

If the module works for you after this modification, please send us a pcap for verification to msfdev[at]metasploit.com, land this pull request into your repository so the original one,  https://github.com/rapid7/metasploit-framework/pull/2227, will be automatically updated and ready to go.

Thanks in advance!