Add fallback to popular hardcoded paths if civicrm is not registered in the platform packages for some reason.
Improve debugging.