Intermediate Directory Creation

Use `grunt.file.write()` instead of `fs.writeFile()` so that we
get free subdirectory creation.