public static String getCurrentDirectory(){
        try{
            return new File(getCurrentJarPath()).getParent();
        }catch (Exception e){
            return new File(".").getAbsolutePath();
        }
    }
referer https://github.com/alibaba/arthas/blob/master/common/src/main/java/com/taobao/arthas/common/FileUtils.java
cop/src/main/java/code/landgrey/copagent/utils/PathUtils.java