add dot file for cocos and fix a little bug in createPrj.sh