add public dir check
Merge branch 'master' of github.com:Se7enSky/git-pages