Fix exporting path in OS X