Update. I have looked at the source code of that addon and edited it a bit.
*Fixed that hardcoded path, now it uses get_basedir.
*Fixed indentation.
*Fixed compile errors + warnings.
I can post the working version but I am not quite sure about the posting policy. It says I can't post plugins which aren't written by me, etc., etc. Can somebody explain to me whether I can post an edited version of the plug-in if it wasn't working and if I can what do I have to do to make sure I am within the policy? Because the fixes are very minor I am keeping the Author name as what it was.