Minor bug fix in python version detection for gzip