use sylplugin_factory_source_dir
remove needless definition
fix a typo