Fixed script that depending on Python platform

Create a batch script for Windows Python (e.g. cyg-apt.bat)
Fixed path with space quoting
Improved appveyor script
Added a test to support trailing whitespace on config file
Fixed support for trailing whitespace on config file
Added test for cache mirror directory end with a slash
Fixed cache mirror directory end with a slash