Don't call a sp function from inside a thread

(psychonic) you can't call sp from in a thread
Use SourceHook::String's to handle the paths
Merge pull request #3 from peace-maker/master

Make call into plugin thread safe