Fixed a bug in archive --directory