exclude git files from archive
check for directory existence before chmod
Merge branch 'v1' into v2