target-dir fix