[FIX] external code tests updated/fixed

This pull request fixes the outdated external code examples in share and the test case
why is this cmake command here windows specific and the commands above linux/mac (`mkdir`)? any reason or just an oversight? does `export OPENMS_BUILD_TREE=<path-where-you-compiled-OpenMS>` also work on Windows?