appveyor: start moving messy things back into standalone scripts [skip ci]