[dfmc] Fix outputting to the profile area.

When outputting to the profile area, the profile location is a locator,
and we want to look at the locator's directory rather than try
to convert it to a directory as if it were a string.