cherry-pick #9 + fix crlf

I cherry-picked and sqashed commits from https://github.com/chocolatey/puppet-chocolatey/pull/9,
then fixed chocolatey.rb to be consistent with gitattrs