JPath::check should be used to check if source is from JPATH_ROOT