Begin unsquashfs module, port copy operation from Thus.

The 'try' block should start after the mkdir, otherwise os.rmdir() is going to be called on an undeclared variable