group all logic that deals with finding the WP files into a single method
allow WP-CLI to be invoked from subdirectories other than the subdir the WP files are in
continue searching after finding an index.php that doesn't contain the path to wp-blog-header.php
Merge pull request #979 from wp-cli/fix-979

WP in subdir only works from the root dir