Use strcmp in getDir