fix some of the FileDialog stuff to work with the new resource scheme