Fix magit apply-hunk on Windows, limit dired width on Windows