Update detect to look for a jar file