Move the gitignore replacements earlier in the flow so there's always something to commit after pods are installed.