Fix stdlib's logger name guessing

Reported by @gcbirzan.