BLD: fix for Mac build
BUG: fix for finding path to file