setup: Fix path being saved where it shouldn't after closing window