fixing group permission issue when mkdirs creates missing parent paths

This addresses a bug/feature in HDFS where you create a directory and HDFS automatically creates any missing parent directories, but doesn't apply the correct permission.  The fix is to recurse up and then create a new directory one level at a time.