fixed sneaky bug in dirs.c, fn()