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

fixes #8368 @nalimilan
Yes, exactly.  `contrib/relative_path.sh` is your friend here. :)