Small improvements to UpdateAddonManifest when used from the command line

Improved command-line argument parsing, and added exception handling when trying to create a P2Repository with an invalid url.