Fixing internals for Vista

Forgot to test the previous commit on Windows Vista (PowerShell v2)
before pushing.