Ruby 1.9

Hi.  I realise ruby 1.8.x is still the norm for running Chef.  I tried uploading the windows cookbook from an instance of knife running under ruby 1.9.2.  There were (only) three syntax errors stopping it from working.  This commit fixes those ruby 1.9 related syntax errors.