Simplify path.resolve usage