resource: only unpack to target if it exists.