improve obfuscate.py to be more reliable.
Merge branch 'master' of https://github.com/cocos2d/cocos2d-x
Merge pull request #2310 from walzer/master

improve tools/closure-compiler/obfuscate.py to be more reliable