fix Path methods default return '', added Path.ext & require.resolve