install script should write files as current user

If you ran it as root before, it would write files as whatever uid we
had on our buildbot. Oops!

Fixes #2249.