Condense the validation of --target
Merge pull request #27 from warrenbuckley/validate-target

Condense the validation of --target