Fix bug in findCore outside of root WP directory