Strip off the sysroot prefix when cross-compiling.

This fixes probe and plugin finding on the target.