fixing path.resolve for windows (we expect it to start with a slash)