readlink throws oserror