Write to TeamCity system variables. Fixes #151
Restored build configuration variables, so we now expose both system and configuration variables
Fixing some ReSharper errors
Merge pull request #152 from JakeGinnivan/TeamCitySystemVariables

Write to TeamCity system variables. Fixes #151