fix permissions for files and directories

These weren't an issue previously, but they seem to be causing problems and go-gitreceive is failing to create repositories on my development box.