Fix non-Windows SDK install
Fix non-Windows SDK install

Fix the SDK install not working on non-Windows platforms.
Port various improvements from more-recent scripts.

martincostello/website,martincostello/website,martincostello/website,martincostello/website