improving java and ruby detection

Sidekick: @lars2893 

Add additional checks for java or ruby modules in their respective verify step.