Dollar Tree to build 400-job distribution center in Upstate S.C.