Fix path.resolve usage to not do stupid shit