use absolute path for checking if a plugin directory is actually a directory.
Merge pull request #79 from liuhongchao/fix-plugin-name-problem

use absolute path for checking if a plugin directory is actually a direc...