refactoring script to use getopts for intellegently handling options. Adding versatility by supporting rpm and debian packages.
adding legacy entry point script to excludes
added more strict option and parameter validation
cleaning up before dying in various places and improving output messages.