Please use the Msf::Post::Common mixin when possible. Indeed the usage of the Msf::Post mixins for post exploitation is preferred since they try to be compatible with different type of sessions (and platforms) when possible.