Fixed #6311: Add support for POSIX get_current_dir_name().