find duplicates: fixed crash when using a predefined directory

[bug #706697]