Fix handling of default cpu shares.
Merge pull request #687 from rjnagal/master

Fix handling of default cpu shares.