fix script path buffer overflow, thanks metroid