defined('_JEXEC') and  defined('JPATH_BASE') --> defined('JPATH_PLATFORM') for the folder /libraries/cms/

@mbabker and @bakual

Here is the PR.

Do we need a Tracker with testing? (how can we test it?)