use realpath instead of readlink