Main window: Fix work dir examination

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Merge branch 'testing' into wip-progressive-doclist-display