add an escape for when targethost is not defined but usecrosscompile is.
fix the ability to use targethost when defined.