[FAB-16684] Automatically create directories
[FAB-16684] Automatically create directories

If directories of output path aren’t exist when running configtxgen, the directories are automatically created.
And changed the permissions for directories to 0750, for files to 0640.

Signed-off-by: yjchang21 <c3a08dab24d9eed9287ffae5d09660d86d1f81c9@gmail.com>
Change-Id: Iab0f98d8ff0f72a1113ce6266bbf6a90ecd0814b

hyperledger/fabric,binhn/fabric,manish-sethi/fabric-sidedb,muralisrini/fabric,hyperledger/fabric,stemlending/fabric,manish-sethi/fabric,stemlending/fabric,manish-sethi/fabric,manish-sethi/fabric-sidedb,binhn/fabric,muralisrini/fabric,manish-sethi/fabric-sidedb,muralisrini/fabric,jimthematrix/fabric,binhn/fabric,manish-sethi/fabric-sidedb,jimthematrix/fabric,stemlending/fabric,stemlending/fabric,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb