Apparently in some devices the filesystems gathering command can return a dict containing a 'messages' key with the filesystems, instead of a plain string. Fixes #23217