tools: fix cleanup-buildenv-build-dir.py to work with very long filenames on Windows.