Fix readlink_recursive when used on file which is not a symlink