Improve checking for existence of the --prefix directory.