After this hostname.local.profile will work with --profile and --list-profiles. Also, the profile path file is checked if it is a directory. CCBUG: 250399 (cherry picked from commit 23062bcc)