Use context managers for open files in a couple more places.
Use context managers for open files in a couple more places.

Signed-off-by: Chris Lalancette <281cd07d7578d97c83271fbbf2faddb83ab3791c@irobot.com>

jake4679/git-got