trace: add trace directory configuration parameter