task fails when destination directory doesn't exist

Currently fails:

```
Fatal error: Unable to write "dist/" file (Error code: ENOENT).
```

Task should make any destination directories that are needed.