use readlink instead of realpath, to make both my linux and mac are happy