Fix for directories inside log archives

This patch fixes a problem where an unhandled IOError would be
raised if a non-file exists under archive log directory.