Prevent access denied errors on Windows when downloading cookbooks

Same change as was made in [this pull request](https://github.com/RiotGames/ridley/pull/212), except for the master branch.