[#44224627] Cherry-pick from 2.2; Prevent paperclip from destroying symlinks