create intermediate folders while creating backup directory