tests: Locate resources and scripts relative to top source dir.
Locate every resource and every script used in the tests using a path
relative to the top of the source tree.
This is a purely mechanical change, mostly done using regular
expressions, with a few manual fixups here and there.
- Signed-off-by: Justus Winter <email@example.com>