Make resource loader modules work from /vendor/, too

`preg_split( '+' . preg_quote( DIRECTORY_SEPARATOR, '+' ) . '((?:vendor|extensions)' . preg_quote( DIRECTORY_SEPARATOR, '+' ) . '.*)+', __DIR__ );`