Add versionchanged for #14984, remove extra blank from string.
#14984: only import pwd on POSIX.