fixed a bug which prevented this to work when no mysql/java processes existed