Tidy up the build when we finish.
Merge pull request #2 from notmatt/build_tmp

Tidy up the build when we finish.