fixed installation of idea and rpm build tools

The idea installation was always triggered because the condition check the wrong folder.
The rpm build tools installation was always aborted because apt-get prompt for confirmation.