Fixes for requirements parsing
Fixes for requirements parsing

1. use text mode for opening requirements.txt so newlines are handled correctly cross-platform
2. strip trailing whitespace before checking for empty lines to skip

lepisma/pipwin