Having watched a few rounds of CS faculty searches, I'm certain the shortage will still be there. (At least at my university.) The reasons are more or less what you mention, but objectively, it really isn't a particularly difficult life and teaching can be fun - especially when you hire a student to grade.