Main window: Fix work dir examination

Signed-off-by: Jerome Flesch <jflesch@gmail.com>