refactor master.cfg

Make use of deprecated WithProperties to reduce code duplication. All the
commands should know be aware of the buildername.