Added safety checks for file existence and now unlinks generated gz file if it failed
Merge pull request #1 from jylauril/upstream

Added safety checks for file existence and now unlinks generated gz file if it failed