not 100% sure but:
"Return" before it might have something to do with it.
more precisely, the return from find_dir.
once your script is done, it executes everything from top to bottom.
so it runs find_dir as normal code and the return makes the script exit before it never gets there.

not sure, but that's the memory I have left from kix 3.xx logics.
_________________________
!

download KiXnet