fix(builder): write out config to a temporary file

If the application has a `tmp` folder or otherwise a `tmp` file, it will
cause erratic bahaviour with the builder. Using a temporary file works
around this issue. The issue we're seeing is:

    /home/git/builder: line 107: tmp: Is a directory