added correct check to test if a file can be handeld by GDAL