Fix directory handling in the instruction.