command lines are too long on windows

This works around command line length issues on Windows.