Hot-fix EPERM on windows

TODO: throw some kind of error