Fix ordering with directories

Prior to this commit we handed back the hash in the wrong
order which caused old to be new and new to be old