Added a test for the mirror directory name end with at least one slash in cache path

On the official Cygwin setup append a slash when the given mirror does not end
with a slash to the mirror directory.
Fixed the mirror directory name end with at least one slash in cache path