You raise an interesting point. After a short while
searching on this topic, I found
very similar examples in relation to yours. I implemented them and all they seem to do is rename the file, they never fully decompress the given gz file. Maybe someone will post an answer to your question.