Using go path structure to make paths correct for any type of OS

Resolves #42
Scan tests are now deterministic
Reusing pointer was causing problems while loading domains for scan
Fixes in scan integration tests

Resolves #29