[Chapel Merge] Change `configure` to create prefix directories

Branch: refs/heads/main
Revision: 19f16be
Author: brandon-neth
Link: Unavailable
Log Message:

Merge pull request #19961 from brandon-neth/configure-prefix

Change configure to create prefix directories
[ Reviewed by @mppf ]

Changes ./configure to create the prefix directory if it doesn't exit. Also changes --print-chpl-home tests so they account for builds that use a prefix directory.

Completes #19762

Modified Files:
M configure

M test/compflags/ferguson/home/sub_test

Compare: https://github.com/chapel-lang/chapel/compare/0d6b1b982e9e...19f16be1470f