Better POSIX compliance in bsd_realpath().