added hosts.mk writing before inventorize checks