While there, fix COPYTREE_SHARE usage, github usage, and make it more into what a port should look like. Reported by: qat Sponsored by: Absolight