Be aware that it might be seborrheic dermatitis, which is exactly what you described: fungus overgrowth after it feeds on oils, and then you react strongly and itchily to the fungus.
I'm glad your scalp is feeling better now that you've washed it, but I wouldn't trust that this is a good solution for someone with a flakey scabby scalp.
Bookmarks