Only create $HOME/pprof if a profile is stored remotely and must be stored. Also, create non-profile temps on os.TempDir() instead of $HOME/pprof or /tmp.