check autocmd is supported before use