refactoring on the intellij version and switch back to 12.0.4

In my yesterday pull request I accidentally pushed a script with version 12.1.4 of intellij. Here is a fix.
I introduced the INTELLIJ_VERSION variable to try to reduce the risk in the future.