That’s strange… You’re correct, you just have to place the file where the rest of your game’s script files are, and it should not matter at all where your game is located.
Do you happen to have other plugins that could somehow be overriding things? This is unfortunately the first time I’ve heard anyone have this issue, so I’m not sure how to help just yet...