fix path issue under MacOS