fix broken tools/rebuild-pages url path

Url built by ``tools/rebuild-pages`` are broken.
MT class hasn't ``AdminScript`` method and ``$script_path`` is sandwiched between the slash, then output ``/$script_path/`` is ``//mt//``.