Fixes assignment and iteration issues arising from the use of $dirs 
Fixes assignment and iteration issues arising from the use of $dirs 

Now changed to @dirs and a proper list assignment, which is more accessible to beginners.
MasterDuke17/doc,tbrowder/doc,MasterDuke17/doc,MasterDuke17/doc,MasterDuke17/doc,tbrowder/doc,tbrowder/doc,tbrowder/doc