Build fixes for MSVC
Determine data directory at runtime

Also move test.yaml to data directory