String () { final String workingDirectoryFromConfig = getWorkingDirectory(); if (StringUtil.isNotEmpty(workingDirectoryFromConfig)) { return getExpandedWorkingDir(this); } final String folderName = myFolderName; if (!StringUtil.isEmptyOrSpaces(folderName)) { return folderName; } final String scriptName = myScriptName; if (!StringUtil.isEmptyOrSpaces(scriptName)) { final VirtualFile script = LocalFileSystem.getInstance().findFileByPath(scriptName); if (script != null) { return script.getParent().getPath(); } } return super.getWorkingDirectorySafe(); }