code: public static File getRunningLocation() throws Exception {
          String codePath = FileUtil.class.getProtectionDomain().getCodeSource().getLocation().getPath();
          String decodedPath = URLDecoder.decode(codePath, "UTF-8");
          File codeFile = new File(decodedPath);
          if (!codeFile.exists()) {
              throw new Exception("Cannot locate running location of JBake!");
          }
          File codeFolder = codeFile.getParentFile().getParentFile();
          if (!codeFolder.exists()) {
              throw new Exception("Cannot locate running location of JBake!");
          }
  
          return codeFolder;
      }
docs: Works out the folder where JBake is running from.
  
  @return File referencing folder JBake is running from
  @throws Exception when application is not able to work out where is JBake running from