Hmm I'm not actually sure what Andy updated but he missed one of the most important things :)
You need to add:
Links::init('/path/to/admin');
....into bad_link.cgi before main(); is called.
You need to add:
Links::init('/path/to/admin');
....into bad_link.cgi before main(); is called.