Simplify code.
Simplify detection of GAE directory.