Changed lexer compiler script to check first if IDEA_HOME is set or not