Fix vault_password positional args error
Fixing variable name bug introduced in ac8950f

Fixes #8617
Fix host pattern matching and enhance error detection

Fixes #8614
Use match() instead of search() for pattern matching

Also related to f48fa3, fix for #8614