Adding os.path.realpath to help macos build pass tests.