trace2: find exec-dir before trace2 initialization