Fixed if..else for GAE w/o Cloud SDK.