Refactor Orchestra\Extension\Finder::detect() method.

Signed-off-by: crynobone <crynobone@gmail.com>