add logic to find HPX from source