[tests] Add a test for -iwithprefix.

 - This just scratches the surface, We have pretty horrible test coverage in
   this area it seems like, but this at least covers the change in r173410.
[build/clang_darwin] Don't try to run sw_vers if we don't have it.
 - Also, fix the test this is guarding, which was backwards.