Properly create nested dirs for generator.

Also copies `fixtures/package.json` to `temp` to avoid accidental `git commit` of test generated changes.