allow queue class to be overriden from command line

use the same mechanism as the override for worker class.