Fixed bug where non-directories in archive caused crash