added a little bit more safety to setting of extensionws for ilwis files. Some cases were not handled