Add support for setting mode on the extracted files

Fixes #18.
1.0.6