Mac Os X path fix (improveable).

I guess for this problem there are better solutions.