Node JS directory compare