[4.2] Forward Thinking For Composer

All this `"target-dir"` stuff is deprecated in composer. We better migrate over to the better way of doing it.