[Android] Make variable name consistent in generate_xwalk_core_library.py

It's mix using "dir", "directory" and "folder". Change all to
"dir" for consistency.
Merge pull request #1696 from wang16/use_dir

[Android] Make variable name consistent in generate_xwalk_core_library.p...