get ext from filename