when unpacking archives, don't preserve permissions except execution for regular files
Merge pull request #1146 from qwcode/fix_1133

tar/zip unpack changes