I recently came across this issue. The problem is that it’s looking in the wrong path, likely something it isn’t able to write to (hence your /tmp workaround). Try doing the same thing, only using ‘outfile’ — it will be saved to /usr/…/…/ somewhere.