Fix edge case where autodetect was being configured incorrectly