clear path cache after getting a proper config file (fixes #2605)

should fix #2605, retest please.