Handled non-existing files more gracefully, still not fixed the windows/linux path problems, sticking with linux compatibility for now