- Fixed sporadic permission issue due to non-blocking calls to chmod
- Upgraded external sorting library, increased number of temporary files, and set hard limits on memory use for sorting to prevent out-of-memory problems.