fixed bug with format_return where the file was always unzipped as 'shp'
regardless of contents.