bugfix find resource extension handling.