detect script folder for build-dmg