fixed a bug where paths given directly caused modread to error