Better normalization of package names
More lenient about trailing slashes