Accept both esnext and configPath options

Fixes #47 
done