Add shebang to update scripts and fix Xcode references

This allows editing the scripts in Xcode and automates the building of libgit (no need to drop to the CLI anymore).