[COOK-2079] Create directory before touching restart.txt

Signed-off-by: Seth Vargo <sethvargo@gmail.com>