add DATAROOTDIR to build_h.jl, use it in Base.runtests()

fixes #8368 @nalimilan
Agreed with @nalimilan