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

Backport of 6f896703e43
from #8379
move default setting of prefix to Make.inc,

change SYSCONFDIR and DATAROOTDIR to be relative paths

Backport of: 3f4d2fca8
for #8379