Auto-detect path to expectations
https://phabricator.collabora.com/T16120
This includes !31 (merged).
It also includes srt_system_info_set_environ()
(adjusting our view of environment variables for tests) which I hope isn't too annoying for @denittis, who has probably already had to implement it for !30 (merged)...
Edited by Simon McVittie