Fixed partitioner to use OS-count of executor, if given