In the scripts "env.bat" and "env_for_icons.bat" `%__CD__%` instead of `%CD%` should be used to set the current directory as %CD% returns the environment variable CD if present.