future proof against require.extensions deprecation (as per discussion in #23)