Updated script for AppVeyor support