Fixing regression which prevents directory creation during git commands