WorkDir#dir must not be undef