Fixed a bug where finddir() would never recognize that it had hit its
head on the ceiling