Fix undefined host variable in platform setup