Metasploit::Framework::Module::PathSet::Database#add support

[#50752269]

Add helper methods to Mdm::Module::Path so its easier to determine if
the Path is new or an update to a pre-existing path for
Metasploit::Framework::Module::PathSet::Database#add.