initialize variables so no warnings/notices are output when the directory is empty (all files deleted); fixes #1435

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>