Fixed out of bounds exception in directory search, fixes #37