Use an explicit error message for missing packages

This replaces the previously very cryptic error about an empty path
not existing.