In our batch files for windows we are using `%~dp0` to get the batch location, but it is not well supported (i.e. in `wineconsole`). Let's see if it can be replaced with `%cd%` i.e. if it work in all cases.