fix check_tsd -c/-w options logic

it should fail only if both are None, not the other way around