Fix a bug that after the compression error
Merge pull request #1794 from VisualSJ/develop-3.0_dirname

Fix a bug that after the compression error