Use path.resolve() for files

So it would run in windows, not tested yet