scripttest: improve error message, sort the full list of dependencies