Fix check for known job to use substring