minor windows compat in tests

Minor windows compatibility fixes in tests code

* os.sep
* failing call in subprocess 

Let travis ends before merging.