Added mkdir_p to Script#generate