update target dir attribute