This is a fallback: When `pkg.main` isn't set, it defaults to `/`. So the check below is breaking stuff.