Make appengine path setup a bit more robust