Fix unpack script