fork_execv_on_steroids: fix close/move order of fds, move getpwuid out of fork

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>