Made CGI test script multiplatform-compatible