check if dist dir exists
Merge pull request #514 from lzyzsd/master

check if dist dir exists in build.js