fix mac path variable problem