Fix iio_devattr_exists()

stat() will return an error if the file does not exist. Check for that.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
fmcomms1: Also save alternative sampling_rate attribute

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>