replace echotest and dumptest with python scripts

this solves problems of sed compatibility on different platoforms.

also, the openscad binary to use is now passed in from the ctest script.