better error detection in vips_system()