Prevent the autoloader from looking into some common non-php directories.

We’ve been working a lot more with gulp and sass lately and these libraries can create many, many nested folders causing the autoloader to take very long to find classes, even timing out the request in the process.
Merge pull request #2247 from vanilla/hotfix/autoloader-recursive-opt

Prevent the autoloader from looking into some common non-php directories.