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

fixes #8368 @nalimilan
Yeah, since this will be used from the `julia` executable.