Fixed some issues

1. distcp double folder issue
2. nested folder creation permission fix