handle *_avaliable better, in prep for adding some GUI features

Signed-off-by: Robin Getz <robin.getz@analog.com>