build-git: Create and use enable_sudo() to avoid future code duplication

16058136-c8a2-11e3-a623-fefdb24f8e10
build-git: Don't install as root

Instead, create the destination directory and chown it to the current
user. This ensures that "make install" doesn't try to touch directories
that it shouldn't.

eed530ac-c8ab-11e3-9d77-fefdb24f8e10