Fixed issue with max-version being specified in the wrong location
Merge pull request #771 from toji/max_version_fix

Fixed issue with max-version being specified in the wrong location