path resolution accounting for gzip file extension