Allow single exit codes

When using `:allowed_exit_codes` it is cumbersome to always have an
array of specified values. This change allows `:allowed_exit_codes => 1`
to be used.
Merge pull request #41 from hunner/single_exit_codes

Allow single exit codes