Fix to work with current gist API

Two regexes were not accurate, most likely because the github api has changed. This commit fixes that.