directory_sdmc: Fix a signed/unsigned mismatch comparison