Make the autoloader work with hhvm

hhvm's version of `stream_resolve_include_path` doesnt work on directories. (see https://github.com/facebook/hhvm/issues/1476)

cc @PVince81 @DeepDiver1975