Use Getopt to parse options
Refactor msfupdate so it is testable