Updated get_realpath.

Better commenting based upon local tests.