pake_replace_tokens( 'myfile' 'testdir', ... ) will fail, as it tries to replace in ./testdir/testdir/myfile - both on linux and windows