update: handle realpath exception.