Cannot set working directory for Scala Test run configuration. Fixed IAE.
Fixed possible performance problems.