use os.path.realpath to eliminate symbolic links