Use the configured directory.

Rather than assuming (and repeating) the default value, use the configured value. Required for tddium.

Contributed by @eamonn-webster