fix github semver support

Your implementation assumes that everything with a slash in it is a github link, which isn't true. Try "npm install senchalabs/connect" or "npm install http://something/tarball.tgz".

I moved everything from `add` function to `maybeGithub` function, where I believe semver belongs to.