s3-libads Move variables into if (socket_wrapper_dir()) where they are used.