Fixed broken Windows compability.
The output redirection should also work under Mac OS.
Merge pull request #3 from diogoosorio/feature/windows-compability

Fix Broken Windows compability