change wrong logic of supported path
Merge pull request #397 from ruijunhuang2010/master

change wrong logic of supported path
Merge pull request #125 from ChrisBoesch/master

Updates