JavaNCSS

change version detection algorithm