Fix finding new version for jobtype update via API

This change will make the code look only at the maximum version number
for this particular jobtype when calculating a new version number
instead of the maximum version number of all jobtypes in the system.