refine path option for windows