preserve file attributes when uploading apps and buildpacks
[finishes #60124570]