Add AppVeyor testing.
Use `path.join` properly and in more places.