Not related to your changes, but the first "directory" should be removed.