simplified priviledge test on Windows
Merge pull request #191 from Tieske/refactor_priv

simplified priviledge test on Windows