fix extensionsPath option

* The use of the method path.resolve allowed to use a relative path to extensions
*  extensionsPath option works correctly and uses exactly specified directory (instead it's parent)