If package is not configured for the grammar file, get it from relative path

I believe antlr4-maven-plugin does something similar.