changed hpx_dir to hpx_root flag