Server wasn't starting because of findFile() bug.

The "directory" variable isn't used and "dir" wasn't being set.