Fix: "Import Library" failed when picking a file from file dialog