More robust install.sh: do runnability test in fresh subdirectory.

Fix #15558.