This fails if the `location` directory does not exist. A `mkdir_p` (https://github.com/substack/node-mkdirp) call before each move call should fix this.