Use readlink instead of realpath