Improve package and url validation and added validation that a scheme
has been defined for tar deployment types.