fixes permission checks on Windows with VirtualStore redirection
removed unintended code
Merge pull request #189 from Tieske/fix_permission_check

Fix permission check