COOK-3072 - Made some fixes to the cherry-pick action.

- Changed creates attribute to file.
- Made sure that the final file path was path attribute + basename of file attribute.
- Changed the chowning so that it chowns the file and not the file's parent directory.