Update collect.py

Add comment and windows support