Fix for Mac and use repo's top directory