Fix #10212 (fail to handle relative paths to gzipped files)