Discover system dir instead of hardcoding in tests