Support testing on non Debian environment

I modified "tools/test-runner.pl" for macports/windows(winnie 64bit version) testing.