fix issue #977

fix issue #977
We should leave the constructor in so we can still create configs programmatically.
Adding the `@JsonProperty("directory")` annotation to the constructor argument should make things work.