Defer the check for directory validity until the GUI has appeared, then immediately prompt to change the directory if it appears to be invalid.
On windows, could possibly try to read it out of the registry.
Consider doing so for other settings keys as well.