Fix handling of default cpu shares.