Fix edit_on_github links

This is the astropy-helpers port of astropy/astropy#2661.