Fixes #2265 - Broken hosts_and_facts detection