Remove non-portable assumptions about directory structure

A couple of tests in ```test_utils``` assume a Unix-style filesystem (a ```/usr``` directory, and that you can't create files in the root directory). Amended the tests to use more suitable directory names on Windows.