Cleaned up path setting and error throwing

All paths are relative now. And there's no error throwing on generr any
more.