account for multiple slashes in package names

References npm/npm#6333