target.dir is an optional

On executes, the target did can not be set. Its optional now.