fix path problem on mac