After intensive talking with [AoD]NC, he told me that my errors could be due to version difference. (thanks Gudio)
So, I tried printing the version and this is what I found:
Server is using version Squirrel 3.0 stable
Client is using version Squirrel 3.0 beta 1 (older)
So in order to compile your script, you will have to use this executable I packed after compiling the 3.0 beta 1 source.
The executable will execute every line you type, so you will have to write:
writeclosuretofile("newpath.nut",loadfile("oldpath.nut"));
Source:
Clicky!Executable:
Clicky!Note- I haven't tested with lots of client scripts, but as mine worked, I decided to share this solution. It might not work, but it will most likely do.