Updates 3404 script to use beta aliases as 301 targets

Retrospective PR to keep this script for posterity. See #3404 for details.