OSX build: Fix script path detection