Fix windows paths with trailing /