Revert "Removed target-dir attribute, as it's not necessary."

This reverts commit 2310320caa02a5f70d81ca520d7b77145fdce1eb.