I'm not sure why you're redefining get_custom_exe here :? Isn't the method on Msf::Exploit::EXE good enough here :?