Fixes for Windows support

* allow custom installation directory using basedir
* replace windows_batch call with execute call due to return code glitches
* move default databases from basedir\data to given data_dir
* improved my.cnf template file
Make the test database removal more robust