fix mac path issue