Manage file dialogs for node-webkit