test mdadm exists before calling it