fixed file dialogue filter to work also on mac