Made generate_thumbnails.py windows friendly