Change error detection for version to after other parameters
Merge pull request #387 from hunner/change_error_detection

Change error detection for version to after other parameters