Reinstate SCRIPT_NAME support.

This was removed in d26b427f, breaking the ability to host multiple Showoff decks on the same hostname.