fixing unwanted output in windows

This should fix #112 

@seriousamlqz, @kheradmand , @xiaohe27 Please review