Fixed typos and bad comment causing compile errors, added slightly more tolerant path handling (still *nix only though)