Merge "Enhance getcwd(3) to handle NULL like glibc."