Fixed ancestor path for OS X (related to issue 7070)