Fix for --win option not working