fixed tautological calculation of @main_dirs
Merge pull request #2 from liruoko/master

fixed tautological calculation of @main_dirs