pastebinit: fixup etc location.

Use where we installed `pastebin.d` instead of the location provided in
the script. This shouldn't affect most users.

Closes #27887.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Put tempfile into binmode before writing
Fall back to Process.gid if we aren't a member of the file's group