CRM-14096 add check for civicrm-core dir in layout