Is this enough to detect a JDK? What about a more rigid regex?