Improved rule to explicitly check for tools jar and the VM attach API's existence.