closes #80
* Use easier way to convert path components * Fix failing tests on Windows
* Rewrite integration tests in Rust. * Improve failure output for integration tests. * Move TestEnv to separate module. * Remove old integration tests script. * Re-add integration test for subdirectory.