Cannot override Leap Motion Plugin (not even default SimpleHMD->SimpleHMDX)

Hello,
I am currently attempting to override the built-in Leap Motion plugin and followed this link’s tutorial: Plugin Override

However, when I tried to override SimpleHMD to SimpleHMDX inside of project folder (not inside Engine), compiler has given me the error about this line of code:
Path.GetDirectoryName( RulesCompiler.GetModuleFilename(“Renderer”))+"/Private",

stating that there is no GetModuleFilename. (same happened with Leap Motion overriding)

My main concern is how can I override or extend Leap Motion’s plugin, so that I can have my own version of their plugin?

Thanks