Fix issue with removing test modules on windows