added check for environment variable HPX_ROOT