amzirc: move the function for checking config availability into amzirc