I had to make a change because I foolishly thought that string match would
accept a regular expression for the pattern.  After that I tested on macOS,
Windows and Ubuntu.  The default paths were reasonable and the installations
worked.  So I merged the fix and am closing this ticket.