fixed a hole in the github ip restriction

Simply accessing /change_hook/github (without a slash in the end) allowed you to bypass the IP limitation. Also, the IPs in one line did not work on nginx 1.6.0.