Simplify appengine availability detection code