Fixes #421 and bill-long#1

This fixes #421 and https://github.com/bill-long/chocolatey/pull/1#issuecomment-36649015