[cmake] make directory before real command.