director: fix inotify setup
We must set up the inotify
watch before listing the directory
because otherwise any file which shows up between the listing and the
watch gets lost. This way has a slight potential to duplicate read a
filepath, however this is much better handled (something will error on
the file read on the duplicate name after the job is handled) than the
other way which drops job files on the floor.