Fix bug where basedirlist was treated as a single string
Strip each entry of basedirlist
Merge pull request #1874 from mdboom/basedirlist-bug

fix reading basedirlist from setup.cfg