Item13023: Bootstrap fixes

It no longer depends on the $ENV{SCRIPT_NAME}, which didn't work on
lighttpd.