Better compatibility for realpath usage.