Moved fail-over back to beginning of script.

This doesn't affect the effectiveness of the script, but does make its failures less personally embarrassing.