Use name from repo instead of package name when installing

Fixes #67
i believe we're leaking some memory here.  if `strsplit` successfully allocates `parts[0]`, we need to `free()` it.