Fix windows/unix when using Pathname.glob path problem and handle parsing exceptions.