I did some fixups for ctags in junits in  c3b48359, not sure if they helped. Anyhow, junits do not use the OpenGrok script so the above comment is not relevant.