add more carefulness regarding missing or non-development versions of optional packages