Improvements to file compression handling