Fixed select_file_dialog helper script to honor values passed by virtui.