Can’t run jsdoc on the included rhino bundle from Windows command line

The following issue has been reproduced my environment with bundled rhino and jsdoc.cmd.

https://github.com/jsdoc3/jsdoc/issues/533

My environment is Windows 8.1 and Java 1.7.0_45.

I rewrote jsdoc.cmd.

@ECHO OFF SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION

REM BASEPATH  - jsdoc root url style.
REM _BASEPATH - jsdoc root dos style.
REM PWD       - current working directory with dos style. (read from runtime.js)
REM ARGS      - all arguments.
REM MODULES   - JavaScript Module path.
REM RHINOJAR  - rhino jar file.
REM JSOPT     - options for rhino.
REM OPT       - options for jsdoc.
REM JSDOCJS   - jsdoc.js file path.

SET _BASEPATH=%~dp0
SET _BASEPATH=%_BASEPATH:~0,-1%
SET BASEPATH=file:///%_BASEPATH:\=/%

SET PWD=%CD%

SET MAINCLASS=org.mozilla.javascript.tools.shell.Main

IF "%1" == "--debug" (
    SET MAINCLASS=org.mozilla.javascript.tools.debugger.Main
    SET JSOPT=-debug -opt -1
    SET OPT=--nocolor
)

IF "%1" == "-T" (
    SET JSOPT=-opt -1
)

SET ARGS=%*
SET MODULES=-modules "%BASEPATH%/lib" -modules "%BASEPATH%/node_modules" -modules "%BASEPATH%/rhino" -modules "%BASEPATH%"
SET RHINOJAR=%_BASEPATH%\rhino\js.jar
SET JSDOCJS=%BASEPATH%/jsdoc.js

java -classpath "%RHINOJAR%" %MAINCLASS% %JSOPT% %MODULES% "%JSDOCJS%" %ARGS% %OPT%

ENDLOCAL

I’m sorry for my poor english.