Make checking for Fritomod a bit more robust