get DT_DIR on OSX