Fix for ignored source format if file is gzipped

 Reported by @davmlaw (issue #2 in GitHub tracker)