Thanks to tsdgeos for helping debug this. I'm using zsh on all my local machines so '/tmp' would auto-cd there. This is why it was failing on build.kde.org (cherry picked from commit a961ddc2)