BUGFIX Do nothing in empty directories

Changes:
 -- moved all directory listing to a dedicated function;
 -- do not create empty archive is there is nothing to compress and rotate.