Without this, we end up with PWD issues as the tmp directory is removed automatically after a build. Closes #6771