Moved FileDialog from Ruby to the C++ side