open temp file as binary to suppress LF->CRLF conversion on Windows
Assert that each gem only has one version

When bumping gem versions, if there is more than one version file, we might
bump the wrong one and cause a build failure.

Signed-off-by: Adam Stegman <astegman@pivotallabs.com>