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.