Static builds: Fix components resolution path, improve tests
That brings test success rate from shameful 50% back to semi-respectable 85% on par with non-static builds.
That brings test success rate from shameful 50% back to semi-respectable 85% on par with non-static builds.