Fixed tar.gz mode handling.