Mainwindow: Fix crash on missing config dir