Implements JPATH_BASE per https://github.com/joomla/joomla-cms/pull/1778#discussion_r5928787. Thanks once again Michael!