Fix build when the script is called from Xcode.