Fixed extra items at end of other directory being ignored during comparison