fix cookbook uploading from cookbook resource