auto-generate ctags only when the filetype is ruby or java