resource: convert unpack target to Pathname.