Fixed issue with base64 being very differnt on differnt platforms. Fixed bug with packing empty directories.