Fix file open dialogs regressed in a4146e8