Use mkpath to create directory instead of mkdir in rakefile