Use -Dd${RESULTS_DIR} instead of -Ddtest_results.
Merge pull request #2312 from 9rnsr/fix10519

Fix up for pull 2287