Tweak to media redirect script.