Moved logic to another location where host was in scope so we could call
getCanonicalFileName