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
Correctly determine win arch for installing packages.

My previous implementation had a bug in that it expected execute to
return a result object.  Instead, execute exposes the result object to a
passed block.  So now we check the result within a block and set rootdir
and cygwin executable there.
Merge pull request #47 from jpartlow/issue/master/windows_package_install_fails_testing_result

Correctly determine win arch for installing packages.
potential fix for failing travis tests