Added GetScriptDirectoryName() and GetScriptExtension() for ScriptHandlers.