Use a relative path to the resources directory for SW scope.

This should avoid future problems if the test directory is moved.