Don't use environment variables, as /proc/*/environ cannot be cleaned up
Fix bugs in zlib streaming
Use file handles also for directories in order not to keep everything in-memory