Fix checks for set autoconfig

@DeepDiver1975 @icewind1991 @bantu @kabum