Adding detection of .gz's for local-mode, just like remote mode.