Only use autocmd if it exists.