CDK-526: Updated with review feedback.

 * Moved the code to grab the version info from the pom.properties file
   to a method that is called when --versions is passed in
 * Updated the test to chekc that the first string contains "kite version"
 * Shortened some clean up code through the use of Closeables