Add shallow clone for externals