[Mac] Speed up regex on select file dialog.