use file instead of mount command to check the filesystem

The option --guess-fstype of the utility *mount* has been removed in
recent versions of util-linux