Fix bug added when we changed AppDescription.maxCores to an Option 

The Scala compiler warned about this -- we were comparing an Option against an integer now.